# 视频流传输系统项目文件
TEMPLATE = app
TARGET = VideoPlayer

# 添加Qt模块
QT += core gui network widgets multimedia multimediawidgets

# 指定C++标准
CONFIG += c++11
#CONFIG += console

#DESTDIR = $$PWD/bin

#分别设置中间文件得目录
MOC_DIR = build/moc
OBJECTS_DIR = build/obj
RCC_DIR = build/rcc
UI_DIR = build/ui

# 源文件和头文件
SOURCES += main.cpp \
           displayer.cpp \
           gstvideoplayer.cpp \
           mainwindow.cpp \
           myconfig.cpp \
           rightclickmenu.cpp \
           toast.cpp \
           videoplayer.cpp \
           videoreceiver.cpp \
           videowindow.cpp

HEADERS += mainwindow.h \
           common.h \
           displayer.h \
           gstvideoplayer.h \
           myconfig.h \
           rightclickmenu.h \
           toast.h \
           videoplayer.h \
           videoreceiver.h \
           videowindow.h

win32 {
    # Windows 下的库
#    INCLUDEPATH += $$PWD/lib/Gstreamer/mingw_x86_64/include/gstreamer-1.0/gst
#    INCLUDEPATH += $$PWD/lib/gstreamer/mingw_x86_64/include
#    INCLUDEPATH += $$PWD/lib/gstreamer/mingw_x86_64/include/gstreamer-1.0
#    INCLUDEPATH += $$PWD/lib/gstreamer/mingw_x86_64/include/glib-2.0
#    INCLUDEPATH += $$PWD/lib/gstreamer/mingw_x86_64/lib/glib-2.0/include

#    LIBS += -L$$PWD/lib/gstreamer/mingw_x86_64/lib/ -lgstreamer-1.0 -lgstapp-1.0 -lgstbase-1.0 -lgobject-2.0 -lglib-2.0
} else:unix {
    # Linux 下的库
    #add gstreamer path
#    LIBS += -L/usr/lib/aarch64-linux-gnu -lQt5GStreamer-1.0
#    INCLUDEPATH += /usr/include/QtGStreamer

    INCLUDEPATH += /usr/include/gstreamer-1.0
    INCLUDEPATH += /usr/include/glib-2.0
    INCLUDEPATH += /usr/lib/aarch64-linux-gnu/glib-2.0/include/

    LIBS += -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0
    LIBS += -lgstapp-1.0 -lgstvideo-1.0 -lgstpbutils-1.0
    #LIBS += -lgstrockchipmpp
}

# 配置资源文件

qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

include($$PWD/settingspanal/settingspanal.pri)
include($$PWD/savedata/savedata.pri)

RESOURCES += \
    resources.qrc

FORMS +=

DISTFILES +=
